<template>
  <header>
    <h1>Home Page</h1>
  </header>
  <main>
    <button @click="goToOtherPage">跳转到其他页面</button>
  </main>
</template>

<script setup lang="ts">
import {useRouter} from 'vue-router';

const router = useRouter();
const goToOtherPage = () => {
  // 在这里指定你想要跳转的路径
  router.push('/About');
};
</script>

<style scoped>

</style>

